/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.logic.webapp;

import java.util.List;
import javax.ejb.Local;
import org.jbpm.api.history.HistoryActivityInstance;
import org.jbpm.api.history.HistoryProcessInstance;
import org.jbpm.api.history.HistoryTask;
import org.jbpm.api.task.Task;
import pl.edu.agh.student.model.Application;

/**
 *
 * @author janburkot
 */
@Local
public interface TaskBean {

    List<Task> getAll();
    void destroy();
 
    String take(Task task);
    String complete(Task task, String action);
    
    List<Task> getInState(String stateName);
    List<HistoryTask> getHistoryTask(String executionId);
    
    Application getApplication(Task task);
    Task getCurrentTask();
    
    void setSelectedTask(Task task);

    public java.util.List<pl.edu.agh.student.model.Attachment> getFiles();
}
